import request from '@/utils/request'

// 执行ADE向量库的知识检索
export function search(data) {
  return request({
    url: '/ade/adebase/search',
    method: 'post',
    data: data
  })
}

// 执行AdeKnowledge Base 索引
export function executeAdebase(id) {
  return request({
    url: '/ade/adebase/execute/' + id,
    method: 'put'
  })
}

// 查询ADE Knowledge Base列表 - 所有
export function listAllAdebase(query) {
  return request({
    url: '/ade/adebase/listAll',
    method: 'get',
    params: query
  })
}


// 查询ADE Knowledge Base列表
export function listAdebase(query) {
  return request({
    url: '/ade/adebase/list',
    method: 'get',
    params: query
  })
}

// 查询ADE Knowledge Base详细
export function getAdebase(id) {
  return request({
    url: '/ade/adebase/' + id,
    method: 'get'
  })
}

// 新增ADE Knowledge Base
export function addAdebase(data) {
  return request({
    url: '/ade/adebase',
    method: 'post',
    data: data
  })
}

// 修改ADE Knowledge Base
export function updateAdebase(data) {
  return request({
    url: '/ade/adebase',
    method: 'put',
    data: data
  })
}

// 删除ADE Knowledge Base
export function delAdebase(id) {
  return request({
    url: '/ade/adebase/' + id,
    method: 'delete'
  })
}
